﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/MasterPage.master" AutoEventWireup="true"
    CodeFile="Content.aspx.cs" Inherits="Content" EnableViewState="false" %>

<%@ Register Src="UserControl/NewAnnounce.ascx" TagName="NewAnnounce" TagPrefix="UserControl" %>
<%@ MasterType VirtualPath="~/MasterPage/MasterPage.master" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <script type="text/javascript">
        jQuery(document).ready(function () {
            //处理左边文章发布的随滚动条滚动
            var navH = $("#NewAnnounce_body").offset().top;
            jQuery(window).scroll(function () {
                var scroH = $(this).scrollTop();
                if (scroH >= navH) {
                    jQuery("#NewAnnounce_body").css({ "position": "fixed", "top": 0 });
                } else if (scroH < navH) {
                    jQuery("#NewAnnounce_body").css({ "position": "static" });
                }
            });

            //设定内容图片最大宽度
            jQuery("#contentmore").find("img").load(function () {
                if ($(this).width() > 560) {
                    $(this).css("width", "580px");
                }
            });
        });
    </script>
    <style type="text/css">
        #contentmore img
        {
            max-width: 580px;
            margin-top:10px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <table style="height: auto; width: 100%;">
        <tr>
            <td style="position: relative; height: auto; width: auto; border: 1px #d6d6d6 solid;
                text-align: left; vertical-align: top; background: url(<%=ResolveUrl("~/images/con_body-x.png")%>) repeat-y;">
                <div style="height: 20px; width: 99%; margin-left: 2px; border: 1px solid #d6d6d6;
                    margin-top: 5px; background-color: #b7b8b9;">
                    <span style="margin-left: 10px; display: block; margin-top: 2px;">现在的位置:首页
                        <asp:Label ID="theclass" runat="server"></asp:Label>
                    </span>
                </div>
                <div id="contentbody" style="margin-top: 10px; margin-bottom: 10px; background-color: White;
                    width: 97%; margin-left: 10px;">
                    <div id="contenttitle" style="text-align: center; padding-top: 5px; margin-top: 10px;
                        font-size: 20px; position: relative; margin-left: -270px; left: 50%; width: 550px;
                        font-family: 微软雅黑,黑体;">
                        <asp:Label ID="newstitle" runat="server"></asp:Label>
                    </div>
                    <div style="padding-top: 3px; background-color: #c7c7c7; margin-top: 10px; height: 18px;
                        font-family: 宋体; position: relative; margin-left: -275px; left: 50%; width: 550px;">
                        <span style="margin-left: 30px;">发表日期：</span>
                        <asp:Label ID="addtime" runat="server" Style="margin-right: 30px;"></asp:Label>
                        <asp:Label ID="author" runat="server" Style="margin-right: 30px;"></asp:Label>
                        阅读：<asp:Label ID="hits" runat="server"></asp:Label>
                    </div>
                    <div id="contentmore" style="line-height: 150%; text-align: left; padding: 15px 10px 10px 10px;
                        font-size: 18px; width: 97%; min-height: 400px; position: relative; margin-bottom: 10px;
                        font-family: 宋体; min-height: 500px; _height: 500px;">
                        <asp:Label ID="newscontents" runat="server" itemprop="articleBody"></asp:Label>
                        <!--百度分享组件--> <div class="bdsharebuttonbox" style=" margin-top:20px;"><a href="#" class="bds_more" data-cmd="more"></a><a href="#" class="bds_qzone" data-cmd="qzone" title="分享到QQ空间"></a><a href="#" class="bds_tsina" data-cmd="tsina" title="分享到新浪微博"></a><a href="#" class="bds_tqq" data-cmd="tqq" title="分享到腾讯微博"></a><a href="#" class="bds_copy" data-cmd="copy" title="分享到复制网址"></a><a href="#" class="bds_print" data-cmd="print" title="分享到打印"></a><a href="#" class="bds_weixin" data-cmd="weixin" title="分享到微信"></a></div>
                    </div>
                </div>
            </td>
            <td style="width: 250px; position: relative; vertical-align: top; padding: 0px; padding-left: 3px;">
                <div id="NewAnnounce_body">
                    <UserControl:NewAnnounce ID="NewAnnounce1" runat="server" />
                </div>
            </td>
        </tr>
    </table>
    <!--百度分享组件--><script>        window._bd_share_config = { "common": { "bdSnsKey": {}, "bdText": "", "bdMini": "1", "bdMiniList": false, "bdPic": "", "bdStyle": "1", "bdSize": "24" }, "share": {}, "image": { "viewList": ["qzone", "tsina", "tqq", "copy", "print", "weixin"], "viewText": "分享到：", "viewSize": "16" }, "selectShare": { "bdContainerClass": null, "bdSelectMiniList": ["qzone", "tsina", "tqq", "copy", "print", "weixin"]} }; with (document) 0[(getElementsByTagName('head')[0] || body).appendChild(createElement('script')).src = 'http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion=' + ~(-new Date() / 36e5)];</script>
</asp:Content>
